<?php

namespace App\Utility;

class BaseException extends \Exception {
	public function __construct($params = []) {
		if (array_key_exists ( 'code', $params )) {
			$this->code = $params ['code'];
		}
		if (array_key_exists ( 'msg', $params )) {
			$this->message = $params ['msg'];
		}
	}
}